.class public Lcom/xingbook/ui/overclass/VideoView;
.super Landroid/view/SurfaceView;

# interfaces
.implements Landroid/widget/MediaController$MediaPlayerControl;


# instance fields
.field private A:Landroid/media/MediaPlayer$OnBufferingUpdateListener;

.field public a:Z

.field b:Landroid/net/wifi/WifiManager$WifiLock;

.field c:Landroid/media/MediaPlayer$OnVideoSizeChangedListener;

.field d:Landroid/media/MediaPlayer$OnPreparedListener;

.field e:Landroid/view/SurfaceHolder$Callback;

.field private f:Landroid/content/Context;

.field private g:Landroid/net/Uri;

.field private h:I

.field private i:Landroid/view/SurfaceHolder;

.field private j:Landroid/media/MediaPlayer;

.field private k:Z

.field private l:I

.field private m:I

.field private n:I

.field private o:I

.field private p:Lcom/xingbook/ui/overclass/c;

.field private q:I

.field private r:I

.field private s:J

.field private t:J

.field private u:Lcom/xingbook/ui/overclass/r;

.field private v:Z

.field private w:Z

.field private x:Lcom/xingbook/ui/overclass/s;

.field private y:Landroid/media/MediaPlayer$OnCompletionListener;

.field private z:Landroid/media/MediaPlayer$OnErrorListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 3

    const/4 v1, 0x0

    const/4 v0, 0x0

    invoke-direct {p0, p1}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->i:Landroid/view/SurfaceHolder;

    iput-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->v:Z

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->w:Z

    new-instance v0, Lcom/xingbook/ui/overclass/k;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/overclass/k;-><init>(Lcom/xingbook/ui/overclass/VideoView;)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->c:Landroid/media/MediaPlayer$OnVideoSizeChangedListener;

    new-instance v0, Lcom/xingbook/ui/overclass/l;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/overclass/l;-><init>(Lcom/xingbook/ui/overclass/VideoView;)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->d:Landroid/media/MediaPlayer$OnPreparedListener;

    new-instance v0, Lcom/xingbook/ui/overclass/m;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/overclass/m;-><init>(Lcom/xingbook/ui/overclass/VideoView;)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->y:Landroid/media/MediaPlayer$OnCompletionListener;

    new-instance v0, Lcom/xingbook/ui/overclass/n;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/overclass/n;-><init>(Lcom/xingbook/ui/overclass/VideoView;)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->z:Landroid/media/MediaPlayer$OnErrorListener;

    new-instance v0, Lcom/xingbook/ui/overclass/p;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/overclass/p;-><init>(Lcom/xingbook/ui/overclass/VideoView;)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->A:Landroid/media/MediaPlayer$OnBufferingUpdateListener;

    new-instance v0, Lcom/xingbook/ui/overclass/q;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/overclass/q;-><init>(Lcom/xingbook/ui/overclass/VideoView;)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->e:Landroid/view/SurfaceHolder$Callback;

    const-string v0, "wifi"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/wifi/WifiManager;

    const/4 v1, 0x1

    const-string v2, "mylock"

    invoke-virtual {v0, v1, v2}, Landroid/net/wifi/WifiManager;->createWifiLock(ILjava/lang/String;)Landroid/net/wifi/WifiManager$WifiLock;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->b:Landroid/net/wifi/WifiManager$WifiLock;

    iput-object p1, p0, Lcom/xingbook/ui/overclass/VideoView;->f:Landroid/content/Context;

    invoke-direct {p0}, Lcom/xingbook/ui/overclass/VideoView;->b()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 3

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0}, Lcom/xingbook/ui/overclass/VideoView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const-string v0, "wifi"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/wifi/WifiManager;

    const/4 v1, 0x1

    const-string v2, "mylock"

    invoke-virtual {v0, v1, v2}, Landroid/net/wifi/WifiManager;->createWifiLock(ILjava/lang/String;)Landroid/net/wifi/WifiManager$WifiLock;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->b:Landroid/net/wifi/WifiManager$WifiLock;

    iput-object p1, p0, Lcom/xingbook/ui/overclass/VideoView;->f:Landroid/content/Context;

    invoke-direct {p0}, Lcom/xingbook/ui/overclass/VideoView;->b()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 3

    const/4 v1, 0x0

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, p3}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    iput-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->i:Landroid/view/SurfaceHolder;

    iput-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->v:Z

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->w:Z

    new-instance v0, Lcom/xingbook/ui/overclass/k;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/overclass/k;-><init>(Lcom/xingbook/ui/overclass/VideoView;)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->c:Landroid/media/MediaPlayer$OnVideoSizeChangedListener;

    new-instance v0, Lcom/xingbook/ui/overclass/l;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/overclass/l;-><init>(Lcom/xingbook/ui/overclass/VideoView;)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->d:Landroid/media/MediaPlayer$OnPreparedListener;

    new-instance v0, Lcom/xingbook/ui/overclass/m;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/overclass/m;-><init>(Lcom/xingbook/ui/overclass/VideoView;)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->y:Landroid/media/MediaPlayer$OnCompletionListener;

    new-instance v0, Lcom/xingbook/ui/overclass/n;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/overclass/n;-><init>(Lcom/xingbook/ui/overclass/VideoView;)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->z:Landroid/media/MediaPlayer$OnErrorListener;

    new-instance v0, Lcom/xingbook/ui/overclass/p;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/overclass/p;-><init>(Lcom/xingbook/ui/overclass/VideoView;)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->A:Landroid/media/MediaPlayer$OnBufferingUpdateListener;

    new-instance v0, Lcom/xingbook/ui/overclass/q;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/overclass/q;-><init>(Lcom/xingbook/ui/overclass/VideoView;)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->e:Landroid/view/SurfaceHolder$Callback;

    const-string v0, "wifi"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/wifi/WifiManager;

    const/4 v1, 0x1

    const-string v2, "mylock"

    invoke-virtual {v0, v1, v2}, Landroid/net/wifi/WifiManager;->createWifiLock(ILjava/lang/String;)Landroid/net/wifi/WifiManager$WifiLock;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->b:Landroid/net/wifi/WifiManager$WifiLock;

    iput-object p1, p0, Lcom/xingbook/ui/overclass/VideoView;->f:Landroid/content/Context;

    invoke-direct {p0}, Lcom/xingbook/ui/overclass/VideoView;->b()V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/r;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->u:Lcom/xingbook/ui/overclass/r;

    return-object v0
.end method

.method static synthetic a(Lcom/xingbook/ui/overclass/VideoView;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/ui/overclass/VideoView;->l:I

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ui/overclass/VideoView;Landroid/media/MediaPlayer;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ui/overclass/VideoView;Landroid/view/SurfaceHolder;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/overclass/VideoView;->i:Landroid/view/SurfaceHolder;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ui/overclass/VideoView;Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/xingbook/ui/overclass/VideoView;->k:Z

    return-void
.end method

.method static synthetic b(Lcom/xingbook/ui/overclass/VideoView;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/ui/overclass/VideoView;->l:I

    return v0
.end method

.method private b()V
    .locals 3

    const/4 v2, 0x1

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/ui/overclass/VideoView;->l:I

    iput v0, p0, Lcom/xingbook/ui/overclass/VideoView;->m:I

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/VideoView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->e:Landroid/view/SurfaceHolder$Callback;

    invoke-interface {v0, v1}, Landroid/view/SurfaceHolder;->addCallback(Landroid/view/SurfaceHolder$Callback;)V

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/VideoView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v0

    const/4 v1, 0x3

    invoke-interface {v0, v1}, Landroid/view/SurfaceHolder;->setType(I)V

    invoke-virtual {p0, v2}, Lcom/xingbook/ui/overclass/VideoView;->setFocusable(Z)V

    invoke-virtual {p0, v2}, Lcom/xingbook/ui/overclass/VideoView;->setFocusableInTouchMode(Z)V

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/VideoView;->requestFocus()Z

    return-void
.end method

.method static synthetic b(Lcom/xingbook/ui/overclass/VideoView;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/ui/overclass/VideoView;->m:I

    return-void
.end method

.method static synthetic c(Lcom/xingbook/ui/overclass/VideoView;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/ui/overclass/VideoView;->m:I

    return v0
.end method

.method private c()V
    .locals 6

    const-wide/16 v3, 0x0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->g:Landroid/net/Uri;

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->x:Lcom/xingbook/ui/overclass/s;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->x:Lcom/xingbook/ui/overclass/s;

    invoke-interface {v0}, Lcom/xingbook/ui/overclass/s;->a()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->i:Landroid/view/SurfaceHolder;

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->x:Lcom/xingbook/ui/overclass/s;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->x:Lcom/xingbook/ui/overclass/s;

    invoke-interface {v0}, Lcom/xingbook/ui/overclass/s;->b()V

    goto :goto_0

    :cond_2
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.android.music.musicservicecommand"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "command"

    const-string v2, "pause"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->f:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->reset()V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->release()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    :cond_3
    :try_start_0
    new-instance v0, Landroid/media/MediaPlayer;

    invoke-direct {v0}, Landroid/media/MediaPlayer;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->d:Landroid/media/MediaPlayer$OnPreparedListener;

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setOnPreparedListener(Landroid/media/MediaPlayer$OnPreparedListener;)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->c:Landroid/media/MediaPlayer$OnVideoSizeChangedListener;

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setOnVideoSizeChangedListener(Landroid/media/MediaPlayer$OnVideoSizeChangedListener;)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->k:Z

    const/4 v0, -0x1

    iput v0, p0, Lcom/xingbook/ui/overclass/VideoView;->h:I

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->y:Landroid/media/MediaPlayer$OnCompletionListener;

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->z:Landroid/media/MediaPlayer$OnErrorListener;

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->A:Landroid/media/MediaPlayer$OnBufferingUpdateListener;

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setOnBufferingUpdateListener(Landroid/media/MediaPlayer$OnBufferingUpdateListener;)V

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/ui/overclass/VideoView;->q:I

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->w:Z

    if-nez v0, :cond_4

    iget-wide v0, p0, Lcom/xingbook/ui/overclass/VideoView;->t:J

    cmp-long v0, v0, v3

    if-lez v0, :cond_4

    iget-wide v0, p0, Lcom/xingbook/ui/overclass/VideoView;->s:J

    cmp-long v0, v0, v3

    if-ltz v0, :cond_4

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    new-instance v1, Ljava/io/FileInputStream;

    iget-object v2, p0, Lcom/xingbook/ui/overclass/VideoView;->g:Landroid/net/Uri;

    invoke-virtual {v2}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/FileInputStream;->getFD()Ljava/io/FileDescriptor;

    move-result-object v1

    iget-wide v2, p0, Lcom/xingbook/ui/overclass/VideoView;->s:J

    iget-wide v4, p0, Lcom/xingbook/ui/overclass/VideoView;->t:J

    invoke-virtual/range {v0 .. v5}, Landroid/media/MediaPlayer;->setDataSource(Ljava/io/FileDescriptor;JJ)V

    :goto_1
    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->i:Landroid/view/SurfaceHolder;

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setDisplay(Landroid/view/SurfaceHolder;)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setAudioStreamType(I)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setScreenOnWhilePlaying(Z)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->prepareAsync()V

    invoke-direct {p0}, Lcom/xingbook/ui/overclass/VideoView;->d()V

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->w:Z

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->b:Landroid/net/wifi/WifiManager$WifiLock;

    invoke-virtual {v0}, Landroid/net/wifi/WifiManager$WifiLock;->acquire()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_1

    goto/16 :goto_0

    :catch_0
    move-exception v0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->x:Lcom/xingbook/ui/overclass/s;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->x:Lcom/xingbook/ui/overclass/s;

    invoke-interface {v1, v0}, Lcom/xingbook/ui/overclass/s;->a(Ljava/lang/Exception;)V

    goto/16 :goto_0

    :cond_4
    :try_start_1
    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->f:Landroid/content/Context;

    iget-object v2, p0, Lcom/xingbook/ui/overclass/VideoView;->g:Landroid/net/Uri;

    invoke-virtual {v0, v1, v2}, Landroid/media/MediaPlayer;->setDataSource(Landroid/content/Context;Landroid/net/Uri;)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_1

    :catch_1
    move-exception v0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->x:Lcom/xingbook/ui/overclass/s;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->x:Lcom/xingbook/ui/overclass/s;

    invoke-interface {v1, v0}, Lcom/xingbook/ui/overclass/s;->a(Ljava/lang/Exception;)V

    goto/16 :goto_0

    :cond_5
    :try_start_2
    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->b:Landroid/net/wifi/WifiManager$WifiLock;

    invoke-virtual {v0}, Landroid/net/wifi/WifiManager$WifiLock;->isHeld()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->b:Landroid/net/wifi/WifiManager$WifiLock;

    invoke-virtual {v0}, Landroid/net/wifi/WifiManager$WifiLock;->release()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_2 .. :try_end_2} :catch_1

    goto/16 :goto_0
.end method

.method static synthetic c(Lcom/xingbook/ui/overclass/VideoView;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/ui/overclass/VideoView;->r:I

    return-void
.end method

.method static synthetic d(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/s;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->x:Lcom/xingbook/ui/overclass/s;

    return-object v0
.end method

.method private d()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    invoke-interface {v0, p0}, Lcom/xingbook/ui/overclass/c;->setMediaPlayer(Landroid/widget/MediaController$MediaPlayerControl;)V

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/VideoView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    instance-of v0, v0, Landroid/view/View;

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/VideoView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    :goto_0
    iget-object v1, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    invoke-interface {v1, v0}, Lcom/xingbook/ui/overclass/c;->setAnchorView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    iget-boolean v1, p0, Lcom/xingbook/ui/overclass/VideoView;->k:Z

    invoke-interface {v0, v1}, Lcom/xingbook/ui/overclass/c;->setEnabled(Z)V

    :cond_0
    return-void

    :cond_1
    move-object v0, p0

    goto :goto_0
.end method

.method static synthetic d(Lcom/xingbook/ui/overclass/VideoView;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/ui/overclass/VideoView;->q:I

    return-void
.end method

.method static synthetic e(Lcom/xingbook/ui/overclass/VideoView;)Landroid/media/MediaPlayer;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    return-object v0
.end method

.method private e()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    invoke-interface {v0}, Lcom/xingbook/ui/overclass/c;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    invoke-interface {v0}, Lcom/xingbook/ui/overclass/c;->d()V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    invoke-interface {v0}, Lcom/xingbook/ui/overclass/c;->b()V

    goto :goto_0
.end method

.method static synthetic e(Lcom/xingbook/ui/overclass/VideoView;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/ui/overclass/VideoView;->n:I

    return-void
.end method

.method static synthetic f(Lcom/xingbook/ui/overclass/VideoView;)Lcom/xingbook/ui/overclass/c;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    return-object v0
.end method

.method static synthetic f(Lcom/xingbook/ui/overclass/VideoView;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/ui/overclass/VideoView;->o:I

    return-void
.end method

.method static synthetic g(Lcom/xingbook/ui/overclass/VideoView;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/ui/overclass/VideoView;->r:I

    return v0
.end method

.method static synthetic h(Lcom/xingbook/ui/overclass/VideoView;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->f:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic i(Lcom/xingbook/ui/overclass/VideoView;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->k:Z

    return v0
.end method

.method static synthetic j(Lcom/xingbook/ui/overclass/VideoView;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->v:Z

    return v0
.end method

.method static synthetic k(Lcom/xingbook/ui/overclass/VideoView;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/ui/overclass/VideoView;->c()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->stop()V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->release()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->b:Landroid/net/wifi/WifiManager$WifiLock;

    invoke-virtual {v0}, Landroid/net/wifi/WifiManager$WifiLock;->isHeld()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->b:Landroid/net/wifi/WifiManager$WifiLock;

    invoke-virtual {v0}, Landroid/net/wifi/WifiManager$WifiLock;->release()V

    :cond_1
    return-void
.end method

.method public a(Ljava/lang/String;JJLcom/xingbook/ui/overclass/s;)V
    .locals 0

    iput-wide p2, p0, Lcom/xingbook/ui/overclass/VideoView;->s:J

    iput-wide p4, p0, Lcom/xingbook/ui/overclass/VideoView;->t:J

    invoke-virtual {p0, p1, p6}, Lcom/xingbook/ui/overclass/VideoView;->a(Ljava/lang/String;Lcom/xingbook/ui/overclass/s;)V

    return-void
.end method

.method public a(Ljava/lang/String;Lcom/xingbook/ui/overclass/s;)V
    .locals 2

    const/4 v1, 0x0

    iput-object p2, p0, Lcom/xingbook/ui/overclass/VideoView;->x:Lcom/xingbook/ui/overclass/s;

    if-eqz p1, :cond_0

    const-string v0, ""

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->g:Landroid/net/Uri;

    :goto_0
    iput-boolean v1, p0, Lcom/xingbook/ui/overclass/VideoView;->a:Z

    iput v1, p0, Lcom/xingbook/ui/overclass/VideoView;->r:I

    invoke-direct {p0}, Lcom/xingbook/ui/overclass/VideoView;->c()V

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/VideoView;->requestLayout()V

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/VideoView;->invalidate()V

    return-void

    :cond_1
    const-string v0, "http:"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_2

    const-string v0, "https:"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_2

    move v0, v1

    :goto_1
    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->w:Z

    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->g:Landroid/net/Uri;

    goto :goto_0

    :cond_2
    const/4 v0, 0x1

    goto :goto_1
.end method

.method public canPause()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public canSeekBackward()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public canSeekForward()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public getAudioSessionId()I
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public getBufferPercentage()I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/xingbook/ui/overclass/VideoView;->q:I

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getCurrentPosition()I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->k:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->getCurrentPosition()I

    move-result v0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getDuration()I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_1

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->k:Z

    if-eqz v0, :cond_1

    iget v0, p0, Lcom/xingbook/ui/overclass/VideoView;->h:I

    if-lez v0, :cond_0

    iget v0, p0, Lcom/xingbook/ui/overclass/VideoView;->h:I

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->getDuration()I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/overclass/VideoView;->h:I

    iget v0, p0, Lcom/xingbook/ui/overclass/VideoView;->h:I

    goto :goto_0

    :cond_1
    const/4 v0, -0x1

    iput v0, p0, Lcom/xingbook/ui/overclass/VideoView;->h:I

    iget v0, p0, Lcom/xingbook/ui/overclass/VideoView;->h:I

    goto :goto_0
.end method

.method public getVideoHeight()I
    .locals 1

    iget v0, p0, Lcom/xingbook/ui/overclass/VideoView;->m:I

    return v0
.end method

.method public getVideoWidth()I
    .locals 1

    iget v0, p0, Lcom/xingbook/ui/overclass/VideoView;->l:I

    return v0
.end method

.method public isPlaying()Z
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->k:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result v0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->k:Z

    if-eqz v0, :cond_3

    const/4 v0, 0x4

    if-eq p1, v0, :cond_3

    const/16 v0, 0x18

    if-eq p1, v0, :cond_3

    const/16 v0, 0x19

    if-eq p1, v0, :cond_3

    const/16 v0, 0x52

    if-eq p1, v0, :cond_3

    const/4 v0, 0x5

    if-eq p1, v0, :cond_3

    const/4 v0, 0x6

    if-eq p1, v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    if-eqz v0, :cond_3

    const/16 v0, 0x4f

    if-eq p1, v0, :cond_0

    const/16 v0, 0x55

    if-ne p1, v0, :cond_2

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/VideoView;->pause()V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    invoke-interface {v0}, Lcom/xingbook/ui/overclass/c;->b()V

    :goto_0
    const/4 v0, 0x1

    :goto_1
    return v0

    :cond_1
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/VideoView;->start()V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    invoke-interface {v0}, Lcom/xingbook/ui/overclass/c;->d()V

    goto :goto_0

    :cond_2
    const/16 v0, 0x56

    if-ne p1, v0, :cond_4

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/VideoView;->pause()V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    invoke-interface {v0}, Lcom/xingbook/ui/overclass/c;->b()V

    :cond_3
    :goto_2
    invoke-super {p0, p1, p2}, Landroid/view/SurfaceView;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_1

    :cond_4
    invoke-direct {p0}, Lcom/xingbook/ui/overclass/VideoView;->e()V

    goto :goto_2
.end method

.method protected onMeasure(II)V
    .locals 4

    iget v0, p0, Lcom/xingbook/ui/overclass/VideoView;->l:I

    invoke-static {v0, p1}, Lcom/xingbook/ui/overclass/VideoView;->getDefaultSize(II)I

    move-result v1

    iget v0, p0, Lcom/xingbook/ui/overclass/VideoView;->m:I

    invoke-static {v0, p2}, Lcom/xingbook/ui/overclass/VideoView;->getDefaultSize(II)I

    move-result v0

    iget v2, p0, Lcom/xingbook/ui/overclass/VideoView;->l:I

    if-lez v2, :cond_0

    iget v2, p0, Lcom/xingbook/ui/overclass/VideoView;->m:I

    if-lez v2, :cond_0

    iget v2, p0, Lcom/xingbook/ui/overclass/VideoView;->l:I

    mul-int/2addr v2, v0

    iget v3, p0, Lcom/xingbook/ui/overclass/VideoView;->m:I

    mul-int/2addr v3, v1

    if-le v2, v3, :cond_1

    iget v0, p0, Lcom/xingbook/ui/overclass/VideoView;->m:I

    mul-int/2addr v0, v1

    iget v2, p0, Lcom/xingbook/ui/overclass/VideoView;->l:I

    div-int/2addr v0, v2

    :cond_0
    :goto_0
    invoke-virtual {p0, v1, v0}, Lcom/xingbook/ui/overclass/VideoView;->setMeasuredDimension(II)V

    return-void

    :cond_1
    iget v2, p0, Lcom/xingbook/ui/overclass/VideoView;->l:I

    mul-int/2addr v2, v0

    iget v3, p0, Lcom/xingbook/ui/overclass/VideoView;->m:I

    mul-int/2addr v3, v1

    if-ge v2, v3, :cond_0

    iget v1, p0, Lcom/xingbook/ui/overclass/VideoView;->l:I

    mul-int/2addr v1, v0

    iget v2, p0, Lcom/xingbook/ui/overclass/VideoView;->m:I

    div-int/2addr v1, v2

    goto :goto_0
.end method

.method public pause()V
    .locals 2

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->k:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->pause()V

    :cond_0
    iput-boolean v1, p0, Lcom/xingbook/ui/overclass/VideoView;->a:Z

    iput-boolean v1, p0, Lcom/xingbook/ui/overclass/VideoView;->v:Z

    return-void
.end method

.method public seekTo(I)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->k:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0, p1}, Landroid/media/MediaPlayer;->seekTo(I)V

    :goto_0
    return-void

    :cond_0
    iput p1, p0, Lcom/xingbook/ui/overclass/VideoView;->r:I

    goto :goto_0
.end method

.method public setMediaController(Lcom/xingbook/ui/overclass/c;)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    invoke-interface {v0}, Lcom/xingbook/ui/overclass/c;->d()V

    :cond_0
    iput-object p1, p0, Lcom/xingbook/ui/overclass/VideoView;->p:Lcom/xingbook/ui/overclass/c;

    invoke-direct {p0}, Lcom/xingbook/ui/overclass/VideoView;->d()V

    return-void
.end method

.method public setMySizeChangeLinstener(Lcom/xingbook/ui/overclass/r;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/overclass/VideoView;->u:Lcom/xingbook/ui/overclass/r;

    return-void
.end method

.method public start()V
    .locals 2

    const/4 v1, 0x1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->k:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/VideoView;->j:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->start()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/VideoView;->a:Z

    :goto_0
    iput-boolean v1, p0, Lcom/xingbook/ui/overclass/VideoView;->v:Z

    return-void

    :cond_0
    iput-boolean v1, p0, Lcom/xingbook/ui/overclass/VideoView;->a:Z

    goto :goto_0
.end method
